﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ColorWheelNET;

namespace ColorWheelTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnShowDialog_Click(object sender, EventArgs e)
        {
            ColorWheelDialog dlg = new ColorWheelDialog();
            //dlg.SelectedColor = pnlSelectedColor.BackColor;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                pnlSelectedColor.BackColor = dlg.SelectedColor;
                colorWheel1.Color = dlg.SelectedColor;
                lblStatus.Text = "color is selected";
            }
            else
            {
                lblStatus.Text = "dlg is canceled";
            }
        }
    }
}
